package com.meiyu.live.net.param;

import java.io.File;

/**
 * Created by LI on 2016/9/19.
 */
public class MultiPartParam {
    String name;
    String fileName;
    File file;
    String contentType = "image/jpeg";
    byte[] data;

    public MultiPartParam(String name, String fileName, String contentType, byte[] data) {
        this.name = name;
        this.fileName = fileName;
        this.data = data;
        this.contentType = contentType;
    }

    public MultiPartParam(String name, String fileName, String contentType, File file) {
        this.name = name;
        this.fileName = fileName;
        this.file = file;
        this.contentType = contentType;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }
}
